--- (9) U-Boot 関係 ---
d) U-Boot の各種情報
U-Boot のコマンドモードで一覧表示できる主な情報を以下に紹介します。
(色分け: 黒:画面表示 赤:入力 青:コメント)
----------------------------------------------------------------------------------
=> version /* U-Bootのバージョン表示 */
U-Boot 1.1.4 LiSt 2.1.0 (Sep 21 2006 - 00:22:56) LinkStation / KuroBox
----------------------------------------------------------------------------------
=> printenv /* 環境変数の表示 */
bootargs=root=/dev/hda1
bootcmd=run bootcmd1
nfsboot=bootp;run nfsargs;bootm
bootdelay=10
baudrate=57600
autoload=no
stdin=nc
stdout=nc
stderr=nc
ipaddr=192.168.11.150
netmask=255.255.255.0
serverip=192.168.11.149
ncip=192.168.11.149
netretry=no
nc=setenv stdin nc;setenv stdout nc;setenv stderr nc
ser=setenv stdin serial;setenv stdout serial;setenv stderr serial
ldaddr=800000
hdpart=0:1
hdfile=boot/vmlinux.UBoot
hdload=echo Loading ${hdpart}:${hdfile};ext2load ide ${hdpart} ${ldaddr} ${hdfile}
boothd=setenv bootargs root=/dev/hda1;bootm ${ldaddr}
hdboot=run hdload boothd
flboot=setenv bootargs root=/dev/hda1;bootm ffc00000
emboot=setenv bootargs root=/dev/ram0;bootm ffc00000
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
bootretry=30
bootcmd1=run hdboot;run flboot
bootcmd2=run flboot
bootcmd3=run emboot
writeng=protect off fff70000 fff7ffff;era fff70000 fff7ffff;mw.l 800000 4e474e47 1;cp.b 800000 fff70000 4
writeok=protect off fff70000 fff7ffff;era fff70000 fff7ffff;mw.l 800000 4f4b4f4b 1;cp.b 800000 fff70000 4
ubpart=0:3
ubfile=share/u-boot/u-boot-hd.flash.bin
ubload=echo Loading ${ubpart}:${ubfile};ext2load ide ${ubpart} ${ldaddr} ${ubfile}
ubsaddr=fff00000
ubeaddr=fff2ffff
ubflash=protect off ${ubsaddr} ${ubeaddr};era ${ubsaddr} ${ubeaddr};cp.b ${ldaddr} ${ubsaddr} ${filesize};cmp.b ${ldaddr} ${ubsaddr} ${filesize}
upgrade=run ubload ubflash
ethact=COMET#0
Environment size: 1474/65532 bytes
----------------------------------------------------------------------------------
=> bdinfo /* 基板情報(Board infomation) */
memstart = 0x00000000
memsize = 0x04000000
flashstart = 0xFFC00000
flashsize = 0x00400000
flashoffset = 0x00000000
sramstart = 0x00000000
sramsize = 0x00000000
bootflags = 0x00000001
intfreq = 196.608 MHz
busfreq = 98.304 MHz
ethaddr = 00:0D:0B:87:5C:5F
IP addr = 192.168.11.150
baudrate = 57600 bps
----------------------------------------------------------------------------------
=> flinfo /* フラッシュメモリ情報 */
Bank # 1: Flash chip: FUJITSU MBM29PL32TM
CFI Query Results:
Primary Vendor Command Set: 0x0002 (AMD/Fujitsu Standard)
Primary Algorithm Table at 0x0040
Alternate Vendor Command Set: 0x0000 (None)
No Alternate Algorithm Table
Vcc Min.: 2.7 V
Vcc Max.: 3.6 V
No Vpp line
Typical byte/word write timeout: 128 us
Maximum byte/word write timeout: 256 us
Typical full buffer write timeout: 128 us
Maximum full buffer write timeout: 4096 us
Typical block erase timeout: 1024 ms
Maximum block erase timeout: 16384 ms
Chip erase not supported
Device size: 0x400000 bytes (4 MiB)
Flash Device Interface description: 0x0002
- x8 / x16 via BYTE# with asynchronous interface
Max. bytes in buffer write: 32
Number of Erase Block Regions: 2
Actual values used by U-Boot:
Word write timeout: 2 ms
Buffer write timeout: 5 ms
Sector erase timeout: 16384 ms
Size: 4 MiB in 71 Sectors
Sector Start Addresses:
FFC00000 (RO) FFC10000 (RO) FFC20000 (RO) FFC30000 (RO) FFC40000 (RO)
FFC50000 (RO) FFC60000 (RO) FFC70000 (RO) FFC80000 (RO) FFC90000 (RO)
FFCA0000 (RO) FFCB0000 (RO) FFCC0000 (RO) FFCD0000 (RO) FFCE0000 (RO)
FFCF0000 (RO) FFD00000 (RO) FFD10000 (RO) FFD20000 (RO) FFD30000 (RO)
FFD40000 (RO) FFD50000 (RO) FFD60000 (RO) FFD70000 (RO) FFD80000 (RO)
FFD90000 (RO) FFDA0000 (RO) FFDB0000 (RO) FFDC0000 (RO) FFDD0000 (RO)
FFDE0000 (RO) FFDF0000 (RO) FFE00000 (RO) FFE10000 (RO) FFE20000 (RO)
FFE30000 (RO) FFE40000 (RO) FFE50000 (RO) FFE60000 (RO) FFE70000 (RO)
FFE80000 (RO) FFE90000 (RO) FFEA0000 (RO) FFEB0000 (RO) FFEC0000 (RO)
FFED0000 (RO) FFEE0000 (RO) FFEF0000 (RO) FFF00000 (RO) FFF10000 (RO)
FFF20000 (RO) FFF30000 (RO) FFF40000 (RO) FFF50000 (RO) FFF60000 (RO)
FFF70000 (RO) FFF80000 (RO) FFF90000 (RO) FFFA0000 (RO) FFFB0000 (RO)
FFFC0000 (RO) FFFD0000 (RO) FFFE0000 (RO) FFFF0000 (RO) FFFF2000 (RO)
FFFF4000 (RO) FFFF6000 (RO) FFFF8000 (RO) FFFFA000 (RO) FFFFC000 (RO)
FFFFE000 (RO)
----------------------------------------------------------------------------------
=> pci /* PCI情報 */
Scanning PCI devices on bus 0
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
00.00.00 0x1057 0x0006 Bridge device 0x00
00.0b.00 0x1317 0x0985 Network controller 0x00
00.0c.00 0x1095 0x0680 Mass storage controller 0x01
00.0e.00 0x1033 0x0035 Serial bus controller 0x03
00.0e.01 0x1033 0x0035 Serial bus controller 0x03
00.0e.02 0x1033 0x00e0 Serial bus controller 0x03
=>
----------------------------------------------------------------------------------
2011/01/31